using System;

namespace SharePoint.DataMapper
{
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, Inherited = false, AllowMultiple = true)]
	public class ItemEventRecieverAttribute : Attribute
	{
		private readonly Type _itemEventReceiver;
		
		public ItemEventRecieverAttribute(Type itemEventReceiver)
		{
			_itemEventReceiver = itemEventReceiver;
		}

		/// <summary>
		/// Gets or sets the item event receiver.
		/// </summary>
		/// <value>The item event receiver. typeof(SPItemEventReceiver).</value>
		public Type ItemEventReceiver
		{
			get { return _itemEventReceiver; }
		}

	}
}